;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@LMSPKBattle]
{
#IF
#SAY
You want to enter the LMS PVP Battle?\
1, You must enter between {FCOLOR/10}21:10 and 21:30{FCOLOR/12}\
_____Maximum Entrants - {FCOLOR/10}50{FCOLOR/12}.\
2, It costs {FCOLOR/10}5{FCOLOR/12} Million to join,\
_____winner takes all!\
3, You lose if you are killed, log or lag out.\
_____You cannot re-enter.\
4, You have to be level {FCOLOR/10}40{FCOLOR/12} to enter,\
_____you cannot use teleports or teleport spells.\
5, You will not incur PK Points, and you cannot lose\
_____any items\
6, You cannot use Roses, Respawn Scrolls, Rent Pets\
_____or wear a RevivalRing\
7, The NPC will check back after 10 Minutes,\
_____and then every 5 Minutes to see how many are left.\\
<[ Enter PK Battle ]/@LMSgopkgzx>\
<[ Exit ]/@exit>\\
<[ GM Menu ]/@LMSgmpkgg>\\\

[@LMSgopkgzx]
#IF
!checklevel 40
#SAY
You need to be level 40\
<[ Exit ]/@exit>\\\
#ACT
break

#IF
checkitemw RedRose 1
or checkitem RedRose 1
or checkitemw CannibalFlower 1
or checkitem CannibalFlower 1
or checkitemw GreenRose 1
or checkitem GreenRose 1
or checkitemw Carnation 1
or checkitem Carnation 1
or checkitemw Bouquet 1
or checkitem Bouquet 1
or checkitemw LifeStar 1
or checkitem LifeStar 1
or checkitemw BloodTalisman 1
or checkitem BloodTalisman 1
or checkitemw AssasinRevival 1
or checkitem AssasinRevival 1
#SAY
You cannot take ANY Roses into this event!\
<[ Exit ]/@exit>
#ACT
break

#IF
checkitemw RevivalRing 1
or checkitem RevivalRing 1
#SAY
You cannot take a RevivalRing into this event!\
<[ Exit ]/@exit>
#ACT
break

#IF
checkitem RespawnScroll 1
#SAY
You cannot take a RespawnScroll into this event!\
<[ Exit ]/@exit>
#ACT
break

#IF
!checkmonRecall
#SAY
You cannot take pets into this map!  Try again!\
<[ Exit ]/@exit>
#ACT
Killslave
break

#IF
hour 21 21
min  09 30
#ACT
goto @LMSatimeok
#ELSESAY
Event runs from 21:10-21:30\
<[ Exit ]/@exit>

[@LMSatimeok]
#IF
checkhum E001 50
#SAY
There is already 50 Players in this map\\
<[ Exit ]/@exit>
#ELSEACT
GOTO @LMSPlayersOK

[@LMSPlayersOK]
#IF
;CheckGold 5000000
#ACT
;Take Gold 5000000
loadvalue N1 "QuestDiary\System\PVP Tourney\PVPBattle\PVPBattleInfo.txt" Info Total
SetEventMap  "E001"
INC N1 5
SAVEVALUE "QuestDiary\System\PVP Tourney\PVPBattle\PVPBattleInfo.txt" Info Total %N1
lineMsg [Grobal] "(*)Last Man Standing PVP Battle Event to start at 21:30!"
Map E001
goto @LMSjinruok_1
#ELSESAY
You have insufficient Gold\
<[ Exit ]/@exit>

[@LMSjinruok_1]
#IF
equal z12 0
#ACT
mov z12 1
goto @LMSjinruok_2_time

[@LMSjinruok_2_time]
#IF
hour 21 21
min  25 31
#ACT
goto @LMSjinruok_2_10
break

#IF
hour 21 21
min  20 24
#ACT
goto @LMSjinruok_2_15
break

#IF
hour 21 21
min  15 19
#ACT
goto @LMSjinruok_2_20
break

#IF
hour 21 21
min  10 14
#ACT
goto @LMSjinruok_2_25
break

[@LMSjinruok_2_25]
#ACT
lineMsg [Grobal] "(*)You have 25 Minutes left before LMS PVP Battle commences - 21:30"
Delaygoto [Grobal] 1260 @LMSjinruok_3_1

[@LMSjinruok_2_20]
#ACT
lineMsg [Grobal] "(*)You have 20 Minutes left before LMS PVP Battle commences - 21:30"
Delaygoto [Grobal] 960 @LMSjinruok_3_1

[@LMSjinruok_2_15]
#ACT
lineMsg [Grobal] "(*)You have 15 Minutes left before LMS PVP Battle commences - 21:30"
Delaygoto [Grobal] 660 @LMSjinruok_3_1

[@LMSjinruok_2_10]
#ACT
lineMsg [Grobal] "(*)You have 10 Minutes left before LMS PVP Battle commences - 21:30"
Delaygoto [Grobal] 360 @LMSjinruok_3_1

[@LMSjinruok_3_1]
#ACT
lineMsg [Grobal] "(*)LMS PVP Battle Commences in 2 Minutes"
Eventmsg Grobal "...................................................LMS PVP Battle Commences in 2 Minutes" 187
Delaygoto [Grobal] 60 @LMSjinruok_3_2

[@LMSjinruok_3_2]
#ACT
lineMsg [Grobal] "(*)LMS PVP Battle Commences in 1 Minute!!!"
Eventmsg Grobal "...................................................LMS PVP Battle Commences in 1 Minute!!!" 187
Delaygoto [Grobal] 60 @LMSjinruok_3ok

[@LMSjinruok_3ok]
#ACT
ResetMapAttr "E001"
SetEventMap  "E001"
lineMsg [Grobal] "(*)LMS PVP Battle Has Started!  You won't go red and you can't drop!!!"
Eventmsg Grobal "...................................................LMS PVP Battle Has Started!  You won't go red and you can't drop!!!" 187
Delaygoto [Grobal] 600 @LMSrenshujiana

;--------------------------
[@LMSrenshujiana]
#IF
!CheckHum E001 1
#ACT
Goto  @CompletedLMS
Break

#IF
checkhum E001 2
#ACT
lineMsg [Grobal] "(*)Keep going Fighters!  Good Luck to you all!"
Eventmsg Grobal "...................................................Keep going Fighters!  Good Luck to you all!" 187
Delaygoto [Grobal] 300 @LMSrenshujiana
break
#ELSEACT
ChangeMapAttr  "E001" "SAFE"
lineMsg [Grobal] "(*)Can the Last survivor visit the NPC to collect their prize!"
Eventmsg Grobal "...................................................Can the Last survivor visit the NPC to collect their prize!" 187
Delaygoto [Grobal] 60 @LMSrenshujiana

[@CompletedLMS]
#IF
#ACT
mov z12 0
Break

[@LMSgmpkgg]
#IF
IsAdmin
#SAY
<[ Stop Competition ]/@LMSgmpkgg_cs>\
<[ Main Menu ]/@LMSPKBattle>
#ELSESAY
<[ Main Menu ]/@LMSPKBattle>

[@LMSgmpkgg_cs]
#IF
IsAdmin
#ACT
mov z12 0
#SAY
Competition Stopped!\
#ELSESAY
Sorry, you are not a GM!\

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;